# 猜大小
import random

i = 1
num = random.randint(1, 100)
while True:
    search_num = int(input("请输入一个1-100之间的整数："))
    i+=1
    if search_num == num:
        print("恭喜你猜对了！")
        break
    elif search_num > num:
        print("猜大了！")
    else:
        print("猜小了！")
    print("您已经踩了",i, '次')
